import request from '/@/utils/request';
// 查询列表
export function listViews(query:any) {
    return request({
        url: '/views/list',
        method: 'get',
        params: query
    })
}
// 查询详细
export function getviews(autoCodeID:any) {
    return request({
        url: '/autocode/get',
        method: 'get',
        params: {
            id: autoCodeID.toString()
        }
    })
}
// 新增
export function addViews(data:any) {
    return request({
        url: '/views/add',
        method: 'post',
        data: data
    })
}
// 修改
export function updateViews(data:any) {
    return request({
        url: '/views/edit',
        method: 'put',
        data: data
    })
}
// 删除
export function delViews(autoCodeIDs:any) {
    return request({
        url: '/views/delete',
        method: 'delete',
        data:{
            ids:autoCodeIDs
        }
    })
}
